<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/axios.js"></script>
    <script>
        function doSend(){
            var p= axios.get("http://localhost/filmApi/loadTyps.php")
            p.then(function(data){
                console.log("请求发送成功",data);
            },function(error){
                console.log("请求发送失败",error)
            })
        }
    </script>
</head>
<body>
    <input type="button" onclick="doSend()" value="发送请求">
</body>
</html>